package com.example.demo.service;

import com.example.demo.entity.Artical;
import com.example.demo.entity.Book;
import com.example.demo.entity.BookVO;
import com.example.demo.mapper.BookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BookImpl implements BookService{
    @Autowired
    BookMapper bookMapper;


    @Override
    public List<Book> getpage3(BookVO bookVO) {
        return bookMapper.getpage3(bookVO);
    }

    @Override
    public Integer getcount3(BookVO bookVO) {
        return bookMapper.getcount3(bookVO);
    }

    @Override
    public Integer delete3(Integer id) {
        return bookMapper.delete3(id);
    }

    @Override
    public Book tanchu3(Integer id) {
        return bookMapper.tanchu3(id);
    }


    @Override
    public int update3(Book book) {
        return bookMapper.update3(book);
    }

    @Override
    public Integer insert3(Book book) {
        return bookMapper.insert3(book);
    }

    @Override
    public Integer Bydelete3(Integer[] id) {
        return bookMapper.Bydelete3(id);
    }

    @Override
    public List<Book> getpage9(BookVO bookVO) {
        return bookMapper.getpage9(bookVO);
    }

    @Override
    public Integer getcount9(BookVO bookVO) {
        return bookMapper.getcount9(bookVO);
    }
}
